Optimal. Leaf size=115 \[ -\frac{1}{2} \sqrt{-x^2-4 x-3}+\frac{\tan ^{-1}\left (\frac{1-\frac{x+3}{\sqrt{-x^2-4 x-3}}}{\sqrt{2}}\right )}{2 \sqrt{2}}-\frac{\tan ^{-1}\left (\frac{\frac{x+3}{\sqrt{-x^2-4 x-3}}+1}{\sqrt{2}}\right )}{2 \sqrt{2}}+\tanh ^{-1}\left (\frac{x}{\sqrt{-x^2-4 x-3}}\right )-2 \sin ^{-1}(x+2) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.886921, antiderivative size = 115, normalized size of antiderivative = 1., number of steps used = 20, number of rules used = 13, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.433 \[ -\frac{1}{2} \sqrt{-x^2-4 x-3}+\frac{\tan ^{-1}\left (\frac{1-\frac{x+3}{\sqrt{-x^2-4 x-3}}}{\sqrt{2}}\right )}{2 \sqrt{2}}-\frac{\tan ^{-1}\left (\frac{\frac{x+3}{\sqrt{-x^2-4 x-3}}+1}{\sqrt{2}}\right )}{2 \sqrt{2}}+\tanh ^{-1}\left (\frac{x}{\sqrt{-x^2-4 x-3}}\right )-2 \sin ^{-1}(x+2) \]
Antiderivative was successfully verified.
[In] Int[x^3/(Sqrt[-3 - 4*x - x^2]*(3 + 4*x + 2*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 115.126, size = 129, normalized size = 1.12 \[ - \frac{\sqrt{- x^{2} - 4 x - 3}}{2} - \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} \left (\frac{3 \left (\frac{x}{3} + 1\right )}{2 \sqrt{- x^{2} - 4 x - 3}} - \frac{1}{2}\right ) \right )}}{4} - \frac{\sqrt{2} \operatorname{atan}{\left (\sqrt{2} \left (\frac{3 \left (\frac{x}{3} + 1\right )}{2 \sqrt{- x^{2} - 4 x - 3}} + \frac{1}{2}\right ) \right )}}{4} - 2 \operatorname{atan}{\left (- \frac{- 2 x - 4}{2 \sqrt{- x^{2} - 4 x - 3}} \right )} + \operatorname{atanh}{\left (\frac{x}{\sqrt{- x^{2} - 4 x - 3}} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**3/(2*x**2+4*x+3)/(-x**2-4*x-3)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 6.28423, size = 1093, normalized size = 9.5 \[ -2 \sin ^{-1}(x+2)-\frac{i \left (-2 i+5 \sqrt{2}\right ) \tan ^{-1}\left (\frac{66 i \sqrt{2} x^4+40 x^4+54 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^3+316 i \sqrt{2} x^3+332 x^3+216 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^2+469 i \sqrt{2} x^2+920 x^2+297 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x+208 i \sqrt{2} x+964 x+162 i \sqrt{1-2 i \sqrt{2}} \sqrt{-x^2-4 x-3}-6 i \sqrt{2}+336}{100 \sqrt{2} x^4+114 i x^4+560 \sqrt{2} x^3+392 i x^3+1004 \sqrt{2} x^2+455 i x^2+736 \sqrt{2} x+284 i x+192 \sqrt{2}+132 i}\right )}{8 \sqrt{1-2 i \sqrt{2}}}+\frac{\left (2 i+5 \sqrt{2}\right ) \tanh ^{-1}\left (\frac{66 \sqrt{2} x^4+40 i x^4+54 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^3+316 \sqrt{2} x^3+332 i x^3+216 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x^2+469 \sqrt{2} x^2+920 i x^2+297 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3} x+208 \sqrt{2} x+964 i x+162 \sqrt{1+2 i \sqrt{2}} \sqrt{-x^2-4 x-3}-6 \sqrt{2}+336 i}{100 \sqrt{2} x^4-114 i x^4+560 \sqrt{2} x^3-392 i x^3+1004 \sqrt{2} x^2-455 i x^2+736 \sqrt{2} x-284 i x+192 \sqrt{2}-132 i}\right )}{8 \sqrt{1+2 i \sqrt{2}}}+\frac{\left (2 i+5 \sqrt{2}\right ) \log \left (\left (-2 i x+\sqrt{2}-2 i\right )^2 \left (2 i x+\sqrt{2}+2 i\right )^2\right )}{16 \sqrt{1+2 i \sqrt{2}}}+\frac{\left (-2 i+5 \sqrt{2}\right ) \log \left (\left (-2 i x+\sqrt{2}-2 i\right )^2 \left (2 i x+\sqrt{2}+2 i\right )^2\right )}{16 \sqrt{1-2 i \sqrt{2}}}-\frac{\left (-2 i+5 \sqrt{2}\right ) \log \left (\left (2 x^2+4 x+3\right ) \left (2 i \sqrt{2} x^2+2 x^2-2 \sqrt{2 \left (1-2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3} x+8 i \sqrt{2} x+4 x-2 \sqrt{2 \left (1-2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3}+6 i \sqrt{2}+3\right )\right )}{16 \sqrt{1-2 i \sqrt{2}}}-\frac{\left (2 i+5 \sqrt{2}\right ) \log \left (\left (2 x^2+4 x+3\right ) \left (-2 i \sqrt{2} x^2+2 x^2-2 \sqrt{2 \left (1+2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3} x-8 i \sqrt{2} x+4 x-2 \sqrt{2 \left (1+2 i \sqrt{2}\right )} \sqrt{-x^2-4 x-3}-6 i \sqrt{2}+3\right )\right )}{16 \sqrt{1+2 i \sqrt{2}}}-\frac{1}{2} \sqrt{-x^2-4 x-3} \]
Antiderivative was successfully verified.
[In] Integrate[x^3/(Sqrt[-3 - 4*x - x^2]*(3 + 4*x + 2*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.019, size = 144, normalized size = 1.3 \[ -2\,\arcsin \left ( 2+x \right ) -{\frac{1}{2}\sqrt{-{x}^{2}-4\,x-3}}+{\frac{\sqrt{3}\sqrt{4}}{24}\sqrt{3\,{\frac{{x}^{2}}{ \left ( -3/2-x \right ) ^{2}}}-12} \left ( \sqrt{2}\arctan \left ({\frac{\sqrt{2}}{6}\sqrt{3\,{\frac{{x}^{2}}{ \left ( -3/2-x \right ) ^{2}}}-12}} \right ) -4\,{\it Artanh} \left ( 3\,{\frac{x}{-3/2-x}{\frac{1}{\sqrt{3\,{\frac{{x}^{2}}{ \left ( -3/2-x \right ) ^{2}}}-12}}}} \right ) \right ){\frac{1}{\sqrt{{1 \left ({{x}^{2} \left ( -{\frac{3}{2}}-x \right ) ^{-2}}-4 \right ) \left ( 1+{x \left ( -{\frac{3}{2}}-x \right ) ^{-1}} \right ) ^{-2}}}}} \left ( 1+{x \left ( -{\frac{3}{2}}-x \right ) ^{-1}} \right ) ^{-1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^3/(2*x^2+4*x+3)/(-x^2-4*x-3)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{3}}{{\left (2 \, x^{2} + 4 \, x + 3\right )} \sqrt{-x^{2} - 4 \, x - 3}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^3/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.299971, size = 236, normalized size = 2.05 \[ -\frac{1}{8} \, \sqrt{2}{\left (8 \, \sqrt{2} \arctan \left (\frac{x + 2}{\sqrt{-x^{2} - 4 \, x - 3}}\right ) + \sqrt{2} \log \left (-\frac{2 \, \sqrt{-x^{2} - 4 \, x - 3} x + 4 \, x + 3}{x^{2}}\right ) - \sqrt{2} \log \left (\frac{2 \, \sqrt{-x^{2} - 4 \, x - 3} x - 4 \, x - 3}{x^{2}}\right ) + 2 \, \sqrt{2} \sqrt{-x^{2} - 4 \, x - 3} - \arctan \left (\frac{\sqrt{2} x + 3 \, \sqrt{2} \sqrt{-x^{2} - 4 \, x - 3}}{2 \,{\left (2 \, x + 3\right )}}\right ) - \arctan \left (-\frac{\sqrt{2} x - 3 \, \sqrt{2} \sqrt{-x^{2} - 4 \, x - 3}}{2 \,{\left (2 \, x + 3\right )}}\right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^3/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{3}}{\sqrt{- \left (x + 1\right ) \left (x + 3\right )} \left (2 x^{2} + 4 x + 3\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**3/(2*x**2+4*x+3)/(-x**2-4*x-3)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.275037, size = 250, normalized size = 2.17 \[ \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\frac{3 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + 1\right )}\right ) + \frac{1}{4} \, \sqrt{2} \arctan \left (\frac{1}{2} \, \sqrt{2}{\left (\frac{\sqrt{-x^{2} - 4 \, x - 3} - 1}{x + 2} + 1\right )}\right ) - \frac{1}{2} \, \sqrt{-x^{2} - 4 \, x - 3} - 2 \, \arcsin \left (x + 2\right ) + \frac{1}{2} \,{\rm ln}\left (\frac{2 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac{3 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 1\right ) - \frac{1}{2} \,{\rm ln}\left (\frac{2 \,{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}}{x + 2} + \frac{{\left (\sqrt{-x^{2} - 4 \, x - 3} - 1\right )}^{2}}{{\left (x + 2\right )}^{2}} + 3\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x^3/((2*x^2 + 4*x + 3)*sqrt(-x^2 - 4*x - 3)),x, algorithm="giac")
[Out]